<%@taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<logic:notPresent role="Customer,Employee,Admin,Manager">
    <tiles:insert definition=".mainLayout">
        <tiles:put name="content" type="String">
            <div align="left">
                <h1>400 Bad request</h1>

                <p>We are sorry for this inconvenience, but the page you have requested cannot be displayed.<br/>
                    The reason of this error is you don't have enough permission to access this resource.

                <p>We think the following link(s) may be useful for you:

                <ul>
                    <li><a href="${pageContext.request.contextPath}/">TAKK Home Page</a></li>
                    <logic:present role="Customer">
                        <li><a href="${pageContext.request.contextPath}/Customer/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Employee">
                        <li><a href="${pageContext.request.contextPath}/Employee/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Admin">
                        <li><a href="${pageContext.request.contextPath}/Admin/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Manager">
                        <li><a href="${pageContext.request.contextPath}/Manager/">Your Home Page</a></li>
                    </logic:present>
                </ul>
            </div>
        </tiles:put>
    </tiles:insert>
</logic:notPresent>

<logic:present role="Customer">
    <tiles:insert definition=".customerLayout">
        <tiles:put name="content" type="String">
            <div align="left">
                <h1>400 Bad request</h1>

                <p>We are sorry for this inconvenience, but the page you have requested cannot be displayed.<br/>
                    The reason of this error is you don't have enough permission to access this resource.

                <p>We think the following link(s) may be useful for you:

                <ul>
                    <li><a href="${pageContext.request.contextPath}/">TAKK Home Page</a></li>
                    <logic:present role="Customer">
                        <li><a href="${pageContext.request.contextPath}/Customer/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Employee">
                        <li><a href="${pageContext.request.contextPath}/Employee/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Admin">
                        <li><a href="${pageContext.request.contextPath}/Admin/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Manager">
                        <li><a href="${pageContext.request.contextPath}/Manager/">Your Home Page</a></li>
                    </logic:present>
                </ul>
            </div>
        </tiles:put>
    </tiles:insert>
</logic:present>

<logic:present role="Employee">
    <tiles:insert definition=".employeeLayout">
        <tiles:put name="content" type="String">
            <div align="left">
                <h1>400 Bad request</h1>

                <p>We are sorry for this inconvenience, but the page you have requested cannot be displayed.<br/>
                    The reason of this error is you don't have enough permission to access this resource.

                <p>We think the following link(s) may be useful for you:

                <ul>
                    <li><a href="${pageContext.request.contextPath}/">TAKK Home Page</a></li>
                    <logic:present role="Customer">
                        <li><a href="${pageContext.request.contextPath}/Customer/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Employee">
                        <li><a href="${pageContext.request.contextPath}/Employee/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Admin">
                        <li><a href="${pageContext.request.contextPath}/Admin/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Manager">
                        <li><a href="${pageContext.request.contextPath}/Manager/">Your Home Page</a></li>
                    </logic:present>
                </ul>
            </div>
        </tiles:put>
    </tiles:insert>
</logic:present>

<logic:present role="Admin">
    <tiles:insert definition=".employeeLayout">
        <tiles:put name="content" type="String">
            <div align="left">
                <h1>400 Bad request</h1>

                <p>We are sorry for this inconvenience, but the page you have requested cannot be displayed.<br/>
                    The reason of this error is you don't have enough permission to access this resource.

                <p>We think the following link(s) may be useful for you:

                <ul>
                    <li><a href="${pageContext.request.contextPath}/">TAKK Home Page</a></li>
                    <logic:present role="Customer">
                        <li><a href="${pageContext.request.contextPath}/Customer/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Employee">
                        <li><a href="${pageContext.request.contextPath}/Employee/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Admin">
                        <li><a href="${pageContext.request.contextPath}/Admin/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Manager">
                        <li><a href="${pageContext.request.contextPath}/Manager/">Your Home Page</a></li>
                    </logic:present>
                </ul>
            </div>
        </tiles:put>
    </tiles:insert>
</logic:present>

<logic:present role="Manager">
    <tiles:insert definition=".manager">
        <tiles:put name="content" type="String">
            <div align="left">
                <h1>400 Bad request</h1>

                <p>We are sorry for this inconvenience, but the page you have requested cannot be displayed.<br/>
                    The reason of this error is you don't have enough permission to access this resource.

                <p>We think the following link(s) may be useful for you:

                <ul>
                    <li><a href="${pageContext.request.contextPath}/">TAKK Home Page</a></li>
                    <logic:present role="Customer">
                        <li><a href="${pageContext.request.contextPath}/Customer/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Employee">
                        <li><a href="${pageContext.request.contextPath}/Employee/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Admin">
                        <li><a href="${pageContext.request.contextPath}/Admin/">Your Home Page</a></li>
                    </logic:present>
                    <logic:present role="Manager">
                        <li><a href="${pageContext.request.contextPath}/Manager/">Your Home Page</a></li>
                    </logic:present>
                </ul>
            </div>
        </tiles:put>
    </tiles:insert>
</logic:present>
